<div class="row toolbar">
  <div class="col-md-6">
    <span class="toolbar-header">
      <%= @treatment_group.new_record? ? "#{t(:new_treatment_group)}" : "#{t(:edit)} #{(:treatment_group)}" %> 
    </span>
  </div>
  <div class="col-md-6 text-right">
    <ul class="toolbar-nav">
      <li><%= link_to simple_icon("note"), new_appointment_treatment_path(:appointment_id => params[:appointment_id]) %></li>
      <li><% link_to simple_icon("notes"), new_appointment_treatment_path(:appointment_id => params[:appointment_id]) %></li>
    </ul>
  </div>
</div>

<%= form_for(@treatment_group, url: appointment_treatment_groups_path) do |f| %>
  <% if @treatment_group.errors.any? %>
    <div id="error_explanation">
      <h2>Ditemukan <%= pluralize(@treatment_group.errors.count, "error") %> :</h2>

      <ul>
      <% @treatment_group.errors.full_messages.each do |message| %>
        <li><%= message %></li>
      <% end %>
      </ul>
    </div>
  <% end %>

  <div class="form-group">
    <%= f.label :label %><br>
    <%= f.text_field :label %>
  </div>
  <%= f.submit class: "btn btn-primary" %>
<% end %>
